/*
 * @Author: thl t15945324431@163.com
 * @Date: 2023-10-27 09:39:06
 * @LastEditors: thl t15945324431@163.com
 * @LastEditTime: 2023-11-29 13:38:55
 * @FilePath: \cw_web\gl\src\request\wallet\withdraw.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'

//分页
export async function apiMemberWithdrawalRecordPage(params) {
  return await React.$post('/user/api/b/memberWithdrawalRecord/page', params);
}
//分页
export async function apiMemberGiftIncomeWithdrawalRecordPage(params) {
  return await React.$post('/user/api/b/memberGiftIncomeWithdrawalRecord/page', params);
}
//审核
export async function apiMemberWithdrawalRecordReview(params) {
  return await React.$postJson('/user/api/b/memberWithdrawalRecord/review', params);
}
//审核
export async function apiMemberGiftIncomeWithdrawalRecord(params) {
  return await React.$postJson('/user/api/b/memberGiftIncomeWithdrawalRecord/review', params);
}
//详情
export async function apiMemberWithdrawalRecordId(withdrawalRecordId) {
  return await React.$get('/user/api/b/memberWithdrawalRecord/'+withdrawalRecordId);
}

// 提现金额合计
export async function apiGetTotalAmount(params) {
  return await React.$postJson('/user/api/b/memberGiftIncomeWithdrawalRecord/totalAmount', params)
}
